@nadeshikon/plugin-nextjs
Version:
Run Next.js seamlessly on Netlify
14 lines (10 loc) • 309 B
JavaScript
function Dynamic() {
return <div>This is the page with a dynamic path.</div>
}
export const getStaticPaths = async () => {
return { paths: ['/fallback/dynamic-1'], fallback: 'blocking' }
}
export const getStaticProps = ({ params }) => {
return { props: params }
}
export default Dynamic